package com.changgou.business.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * tb_adv实体类
 * @author 黑马架构师2.5
 *
 */
@Table(name="tb_adv")
public class Advert implements Serializable {

	@Id
	private Integer id;//ID

	private String name;//广告名
	private String position;//位置
	private java.util.Date startTime;//开始时间  2000-01-01 10:10:10
	private java.util.Date endTime;//结束时间	 2000-01-01 10:10:10
	@Column(name = "status")
	private int status;//上下线状态 0代表下线 1代表上线
	private String img;//图片名称
	private String linkurl; //连接地址
	private String remark; //备注
	@Column(name = "onTop")
	private int onTop;	//置顶，默认值为0，置顶的数据为1。

	@Transient
	private int clicks;
	@Transient
	private int orderData;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getLinkurl() {
		return linkurl;
	}

	public void setLinkurl(String linkurl) {
		this.linkurl = linkurl;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getOnTop() {
		return onTop;
	}

	public void setOnTop(int onTop) {
		this.onTop = onTop;
	}

	public int getClicks() {
		return clicks;
	}

	public void setClicks(int clicks) {
		this.clicks = clicks;
	}

	public int getOrderData() {
		return orderData;
	}

	public void setOrderData(int orderData) {
		this.orderData = orderData;
	}
}
